package CtrLayer;

import java.util.ArrayList;

import DataLayer.Model.DelOrdre;
import DataLayer.Model.Kunde;
import DataLayer.Model.Ordre;

public interface IFOrdreCtr
{
	// get all SalesOrders
	public ArrayList<Ordre> getAllOrdre();

	// get all SalesOrders via Kunde name
	public ArrayList<Ordre> getAllOrdreViaKundeNavn(String navn);

	// get all SalesOrders via Kunde Email
	public ArrayList<Ordre> getAllOrdreViaKundeEmail(String email);

	// get all SalesOrders via Status
	public ArrayList<Ordre> getAllOrdreViaStatus(String status);

	// get all SalesOrders via oprettelsesDato
	public ArrayList<Ordre> getAllOrdreViaoprettelsesDato(String oprettelsesDato);

	// get a kunde for the order
	public Kunde getKunde(int kundeId);

	// find a SalesOrder using the id.
	public Ordre getOrdre(int ordreId);

	// create new SalesOrder
	public int createOrdre(Ordre ordre) throws Exception;

	// update SalesOrder
	public int updateOrdre(Ordre ordre);

	// remove SalesOrder
	public int removeOrdre(int ordreId);

	// get all DelOrdrers from the ordreID
	public ArrayList<DelOrdre> getAllDelOrdrer(int ordreId);

	// get DelOrdre by id
	public DelOrdre getDelOrdre(int delOrdreId);
}
